using Gameplay.PVE.Entity;
using Yoozoo.Libs;

namespace Gameplay.PVE
{
    public class MoveBehaviour : IClass
    {
        protected UnitBase unit;
        protected UnitRoadPath roadPath;
        void IClass.OnReset()
        {
            Dispose();
        }

        public virtual void Init(UnitBase unit,UnitRoadPath roadPath)
        {
            this.unit = unit;
            this.roadPath = roadPath;
        }

        protected virtual void Dispose()
        {
            
        }

        public virtual void Update()
        {
            if (!PveManager.Instance.rpgStart)
            {
                UpdatePrepare();
            }
            else if (!PveManager.Instance.rpgFinish)
            {
                UpdateGame();
            }
        }
        
        protected virtual void UpdatePrepare()
        {
            
        }

        protected virtual void UpdateGame()
        {
            
        }
    }
}